<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://jsptags.com/tags/navigation/pager" prefix="pg"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title></title>
<link href="<%=path%>/CSS/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<%=path%>/JQuery/jquery-1.8.2.js"></script>
<%@ include file="/WEB-INF/JSP/ajax.jsp"%>
<script type="text/javascript"
	src="<%=path%>/My97DatePicker/WdatePicker.js"></script>
<style type="text/css">
.seachform li label {line-height: 45px;color: #444444}
.scinput {line-height: 10px;margin-top: 5px}
.scinput1 {margin-top: 5px;height: 30px;}
.scbtn {background: #57a0ff;border-radius: 20px;width: 110px;margin-top: 4px;height: 35px}
thead {background: #f2f2f2}
.tablelist2 th {height: 45px;background: none;}
.tablelist2 tr{height:45px;}
.tablelist2 tr th{height: 20px;border-left: 1px solid #dddee6;border-right: 1px solid #dddee6;color: #444444;text-align: center;}
.tou{background: #e4eafe}
.kh{border-bottom: 1px solid #dddee6;}
.shuju td{border-left: 1px solid #dddee6;border-right: 1px solid #dddee6;color: #787c88;text-align: center;}
.shuju:nth-child(odd){background: #ffffff}
.shuju:nth-child(even){background: #f3f5fb}
.shuju:last-child{border-bottom: 1px solid #dddee6;}
.shuju:HOVER {
	background: #fff6cd;
}

.scbtn {
    outline: none;
}
</style>
</head>
<body style="background: #f5f5f5;padding: 0 10px;">
	<div class="place" style="background: #f5f5f5; margin-top: 10px">
		<ul class="placeul">
			<li><a href="#">报表</a></li>
			<li><a href="#">财务报表</a></li>
			<li><a href="<%=path%>/DrivingSys/queryMonthBigCarJournal/look.action">国力大车月账表</a></li>
		</ul>
	</div>

	<div class="rightinfo"
		style="background: #fff; border-radius: 10px; height: 45px;">

		<form action="<%=path%>/DrivingSys/queryMonthBigCarJournal" class="form" method="post" >
			<ul class="seachform">
				<li><label>考试时间</label> <input
					type="text" name="time" id="ksrq" value="${time}" class="scinput1"
					onclick="WdatePicker({el:'ksrq',dateFmt:'yyyy-MM'})" /></li>
				<li><label>&nbsp;</label><input name="" onclick="tj()" type="button"
                                                class="scbtn" value="立即查询" id="cx"/></li>
				<shiro:hasPermission name="/importMonthBigCarJournalData">
					<li><label>&nbsp;</label><input type="button" id="dc"
													class="scbtn" value="导出Excel" /></li>
				</shiro:hasPermission>
			</ul>
		</form>
	</div>

	<div style="width: 100%; overflow: auto; margin-bottom: 20px; margin-top: 30px; background: #fff; box-shadow: 0 0 10px #f2f2f2; min-height: 600px" class="div">
		<table class="tablelist2" style="width: 100%"id="table1">
			<thead>
				<tr class="tou">
					<th>日期</th>
					<th>约考人数</th>	
					<th>未到人数</th>
					<th>实考人数</th>	
					<th>及格人数</th>
					<th>及格率</th>	
					<th>本市考生实考人数</th>
					<th>备注</th>
				</tr>	
			</thead>
			<c:forEach items="${bigCarJournals}" var="s">
				<tr class="shuju">
					<td>${s.ksrq}</td>
					<td>${s.ykrs}</td>
					<td>${s.wdrs}</td>
					<td>${s.skrs}</td>
					<td>${s.jgrs}</td>
					<td>${s.jgl}</td>
					<td>${s.bssk}</td>
					<td>${s.cfdesc}</td>
				</tr>
			</c:forEach>
		</table>
	</div>
</body>
<script type="text/javascript">
function tj(){
	var s = $("#ksrq").val();
	if(s == null || s == ''){
		alert("考试时间不能未空");
		return false
	}else{
		location = '<%=path%>/DrivingSys/queryMonthBigCarJournal/look.action?time='+s
	}
}

	$("#dc").click(function(){
		var s = "${time}";
		if(s == null || s == ''){
			alert("考试时间不能未空");
			return false
		}else{
			location = '<%=path%>/DrivingSys/importMonthBigCarJournalData?time='+s
		}
	})
</script>
</html>